package com.zyd.shiro.business.service;

import com.github.pagehelper.PageInfo;
import com.zyd.shiro.business.entity.Assets;
import com.zyd.shiro.business.vo.AssetsConditionVO;
import com.zyd.shiro.business.vo.UserConditionVO;
import com.zyd.shiro.framework.object.BaseConditionVO;
import com.zyd.shiro.framework.object.AbstractService;
import com.zyd.shiro.persistence.beans.*;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface PakAssetsService extends AbstractService<Assets, Long> {

    /**
     * 分页查询
     *
     * @param vo
     * @return
     */
    PageInfo<Assets> findPageBreakByCondition(AssetsConditionVO vo);


    void increase(PakAssets pakAssets);

    void increase(PakPurchaseLine purchaseLine, PakPurchase pakPurchase);

    void distribute(PakDistribute pakDistribute);

    void receive(PakDistribute pakDistribute);

    void withdrawal(PakWithdrawal pakWithdrawal);

    void repair(PakRepair pakRepair);

    void scrapped(PakScrapped pakScrapped);

    PageInfo<Assets> listUser(AssetsConditionVO assetsConditionVO);

    void brrow(PakBorrow pakBorrow);

    void restore(PakRestore pakRestore);

    void migrate(PakMigrate pakMigrate);

    void transfer(PakTransfer pakTransfer);

    boolean inventory(PakInventory inventory);

    int inventoryNum(PakInventory inventory);

    void requisition(PakRequisition requisition);

    List<Map<String, String>> convMapData(List<Map<String, String>> list);

    Assets findByCode(String code);

    List<Map> groupStatus(Long id);
}